<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>个人信息</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.8.8/themes/gray/easyui.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.8.8/themes/icon.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/jquery-easyui-1.8.8/themes/color.css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.8.8/jquery.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/jquery-easyui-1.8.8/jquery.easyui.min.js"></script>

</head>
<body>
	<div id="teacher_dlg"
		style="width: 400px; height: 280px; padding: 10px 20px; margin: 0 auto;">
		<style>
	#teacher_fm{
		font-size : 16px;
	}
	#teacher_fm>div{
		margin-bottom : 10px;
	}
	#teacher_fm>div>input{
		padding-left : 5px;
	}
	
</style>
		<form id="teacher_fm" style="padding: 10px 20px; margin: 0 auto;"
			enctype="multipart/form-data" method="post" action="${pageContext.request.contextPath}/teacherInfo/edit">
			<div class="fitem"> 
				<input name="id" type="hidden" value="${teacherInfo.id }">
			</div>
			<div class="fitem">
				<label>教师编号:</label> 
				<input name="tehId" value="${teacherInfo.tehId }" disabled="disabled">
			</div>
			<div class="fitem">
				<label>教师名称:</label> <input name="name" value="${teacherInfo.name }" disabled="disabled">
			</div>
			<div class="fitem">
				<label>性　　别:</label> <input name="sex" value = '${teacherInfo.sex eq "1"? "男":"女"}' disabled="disabled">
			</div>
			<div class="fitem">
				<label>籍　　贯:</label> <input name="place" class="easyui-validatebox"
					value="${teacherInfo.place }"
					data-options="required:true, missingMessage:'请输入籍贯'">
			</div>
			<div class="fitem">
				<label>家庭地址:</label> <input name="homeAdd"
					class="easyui-validatebox" value="${teacherInfo.homeAdd }"
					data-options="required:true, missingMessage:'请输入家庭地址'">
			</div>
			<div class="fitem">
				<label>电话号码:</label> <input name="tel" class="easyui-validatebox"
					value="${teacherInfo.tel }"
					data-options="required:true, missingMessage:'请输入电话号码',validType:'mobile'">
			</div>
			<div class="fitem">
				<label>身份证号码:</label> <input name="idNumber"
					value="${teacherInfo.idNumber }" disabled="disabled">
			</div>
			<div class="fitem">
				<label>入职日期:</label> 
				<input name="jobTime" value='<fmt:formatDate value="${teacherInfo.jobTime}" pattern="yyyy-MM-dd"/>' 
				 disabled="disabled">
				
			</div>
			<div class="fitem">
				<label>教师等级:</label> <input name="tehGrade.tgId"
					value="${teacherInfo.tehGrade.gradeName }" disabled="disabled">
			</div>
			<div>
				<input type="submit" value="提交"> 
				<input type="reset"　value="重置">
			</div>
		</form>
	</div>

	<script type="text/javascript">	
		$.extend($.fn.validatebox.defaults.rules, {
			mobile : {
				validator : function(value, param) {
					return /^(?:13\d|15\d|18\d)-?\d{5}(\d{3}|\*{3})$/
							.test(value);
				},
				message : '手机号码不正确'
			}
		});
		
	</script>
</body>
</html>